<template>
  <div class="home">
    <img alt="Vue logo" src="../assets/logo.png">
    <HelloWorld msg="Welcome to Your Vue.js App"/>
  </div>
</template>

<script>
// @ is an alias to /src
import HelloWorld from '@/components/HelloWorld.vue'
import { demo1, demo2 } from '@/api/demo'
// import 'core-js'

export default {
  name: 'home',
  components: {
    HelloWorld
  },
  data () {
    return {
      abc: 123,
      csw: 222,
      sdf: 22
    }
  },
  mounted () {
    demo1(20).then(data => {
      console.log(data)
    })
    this.fun1()
    console.log(this.common.getExplorer())
    let test1 = Array.from(new Set([1, 2, 3, 2, 1]))
    console.log(test1)
  },
  methods: {
    async fun1 () {
      let ax = await demo2(50)
      console.log(ax.data)
    }
  }
}
</script>
